﻿namespace Bilibili.Model.Search
{
    public sealed class SearchUserItem
    {
        public string mid { get; set; }
        public string uname { get; set; }
        private string _pic;
        public string upic
        {
            get { return _pic; }
            set { _pic = "https:" + value; }
        }
        public int level { get; set; }
        public int videos { get; set; }
        public int fans { get; set; }
        public int is_upuser { get; set; }
        public string lv
        {
            get
            {
                return $"ms-appx:///Assets/Icon/lv{level}.png";
            }
        }
        public SearchUserOfficialVerifyItem official_verify { get; set; }
        public string usign { get; set; }
        public string sign
        {
            get
            {
                if (official_verify != null && !string.IsNullOrEmpty(official_verify.desc))
                    return official_verify.desc;
                return usign;
            }
        }
    }
}